<?php

namespace App;

class Enum
{

    //product 产品
    const PRODUCT_IS_VIRTUAL_TRUE=1;
    const PRODUCT_IS_VIRTUAL_FALSE=0;

    const PRODUCT_STATUS_LISTING=1;
    const PRODUCT_STATUS_DE_LISTING=0;


    //storage 仓库
    const STORAGE_STATUS_ENABLE=1;
    const STORAGE_STATUS_DISABLE=0;


    //purchase_order采购入库订单
    const PURCHASE_ORDER_STATUS_PENDING=1;
    const PURCHASE_ORDER_STATUS_APPROVED=2;
    const PURCHASE_ORDER_STATUS_CANCEL=3;

    //purchase_order采购退货订单
    const PURCHASE_RETURN_ORDER_STATUS_PENDING=1;
    const PURCHASE_RETURN_ORDER_STATUS_APPROVED=2;
    const PURCHASE_RETURN_ORDER_STATUS_CANCEL=3;



    //is_enable 是否有效数据
    const IS_ENABLE_TRUE=1;
    const IS_ENABLE_FALSE=0;

    //Product_stock_log
    const PRODUCT_STOCK_LOG_MODE_ADD=1;
    const PRODUCT_STOCK_LOG_MODE_SUB=2;

    const PRODUCT_STOCK_LOG_TYPE_PURCHASE_IN=1;
    const PRODUCT_STOCK_LOG_TYPE_SALE_OUT=2;
    const PRODUCT_STOCK_LOG_TYPE_PURCHASE_RETURN=3;
    const PRODUCT_STOCK_LOG_TYPE_SALE_RETURN=4;
    const PRODUCT_STOCK_LOG_TYPE_TRANSFER_IN=5;
    const PRODUCT_STOCK_LOG_TYPE_TRANSFER_OUT=6;

    const PRODUCT_STOCK_LOG_TYPE_STOCK_CHECK=7;


    //purchase_order采购入库订单
    const STOCK_TRANSFER_STATUS_PENDING=1;
    const STOCK_TRANSFER_STATUS_APPROVED=2;
    const STOCK_TRANSFER_STATUS_CANCEL=3;


    //sale-order 销售订单
    const SALE_ORDER_STATUS_UNPAID=1;
    const SALE_ORDER_STATUS_PAID=2;
    










}